using System;
namespace MonoBED3 {
	public class Color {
		br.odb.libscene.Color color;
	
		public Color() {
			color = new br.odb.libscene.Color();
		}
		
		public override string ToString ()
		{
			return color.toString();
		}
		
		public Color( br.odb.libscene.Color color ) {
			this.color = new br.odb.libscene.Color( color );
		}
		
		public Color( Color color ) {
			this.color = new br.odb.libscene.Color( color.color );
		}
	
		
		
		/// <summary>
		/// 
		/// </summary>
		/// <returns>
		/// A <see cref="System.Single"/>
		/// </returns>
		public float getR() {
			return color.getR();
		}
		

		public br.odb.libscene.Color getODBColor() {
			return new br.odb.libscene.Color( color );
		}
		
		public float getG() {
			return color.getG();
		}
		

		public float getB() {
			return color.getB();
		}


		public float getA() {
			return color.getA();
		}

				
		public void setR( float v ) {
			color.setR( ( int ) ( v * 255 ) );
		}

		public void setG( float v ) {
			color.setG( ( int ) ( v * 255 ) );
		}

		public void setB( float v ) {
			color.setB( ( int ) ( v * 255 ) );
		}

		public void setA( float v ) {
			color.setA( ( int ) ( v * 255 ) );
		}
		
	}
}

